package com.kuang.service;

import com.kuang.mapper.UserMapper;
import com.kuang.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class Userlmpl implements UserMapper {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> selectAllUser() {
        List<User> userList = userMapper.selectAllUser();
        for (User user : userList){
            System.out.println(user);
        }
        return userList;
    }
}
